//
//  DDOrderSet.m
//  Dingdong
//
//  Created by 程强 on 16/11/26.
//  Copyright © 2016年 程强. All rights reserved.
//

#import "DDOrderSet.h"

@implementation DDOrderSet
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"orderAry" : @"result"};
}
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"orderAry" : [DDOrderObj class] };
}
@end


@implementation DDOrderObj
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"orderItemGoodsList" : [DDOrderObjItem class] };
}
@end

@implementation DDOrderObjItem

@end

@implementation DDOrderInfo
+ (kOrderStatus)mappingOrderStatus:(NSNumber *)status
{
    kOrderStatus orderStatus = kOrderStatusAll;
    NSInteger kStatus = status.integerValue;
    switch (kStatus) {
        case 0:
            orderStatus = kOrderStatusPending;
            break;
        case 1:
            orderStatus = kOrderStatusConfirm;
            break;
        case 2:
            orderStatus = kOrderStatusPaid;
            break;
        case 3:
            orderStatus = kOrderStatusShipped;
            break;
        case 4:
            orderStatus = kOrderStatusReceived;
            break;
        case 5:
            orderStatus = kOrderStatusComplete;
            break;
        case 6:
            orderStatus = kOrderStatusCancel;
            break;
        case 7:
            orderStatus = kOrderStatusAfterService;
            break;
            
        default:
            break;
    }
    return orderStatus;
}
@end

@implementation DDOrderItemInfo

@end
